REGISTER FUNCTION
This command starts a function register block.
To register a function for referenced calls, intervals or as a callback, you must use following syntax:

REGISTER FUNCTION : {Function Name()} : {Type of Registration}

The block starts with REGISTER FUNCTION followed by a colon (or a new line). After that you need to specify an existing function. Finally you need to give the type of the registration, which can either be INTERVAL, REFERENCE or CALLBACK. Note that the functions can't have any parameters. However, inside the functions you can obtain all arguments that were past to then with CALLBACK ARG() or REFERENCE ARG(). Alternatively you can use a sub routine instead of a function:

REGISTER FUNCTION : GOSUB {label} : {Type of Registration}





SYNTAX
REGISTER FUNCTION : {function name} : {Type of Registration}
REGISTER FUNCTION : GOSUB {Label} : {Type of Registration}


RELATED INFO
View Intervals, References and Callbacks Index
View STYX Index
View STYX Main File